配置不同类型的路由目的地端点信息,包括REST接口、MQTT、KAFKA、MYSQL等连接信息。
功能描述:创建路由目的地端点前,测试是否能连接到所配置的目的地址。
POST /api/v1/address-configs/connection/testing
Body基础参数:
Name | Type | Description | Required |
---|---|---|---|
type | int | 转发方式(1:REST / 2:MQTT / 3:KAFKA / 4:MYSQL / 5:保留值 / 6:ONENET / 7:SQL Server / 10:数据湖KAFKA) | Yes |
env | int | 执行环境,1:云端 | Yes |
Body可选参数:
Name | Type | Description | Required |
---|---|---|---|
path | string | 访问路径,REST仅有属性 | Yes |
host | string | 转发主机地址, IP或者域名 | Yes |
port | int | 端口, 1~65535 | Yes |
Name | Type | Description | Required |
---|---|---|---|
clientId | string | 客户端ID | Yes |
username | string | 用户名 | Yes |
password | string | 密码 | Yes |
topic | string | MQTT指定推送topic | Yes |
host | string | 转发主机地址, IP或者域名 | Yes |
port | int | 端口, 1~65535 | Yes |
Name | Type | Description | Required |
---|---|---|---|
topic | string | KAFKA指定推送topic | Yes |
addr | string | KAFKA地址,支持集群(用英文逗号隔开) | Yes |
Name | Type | Description | Required |
---|---|---|---|
username | string | 用户名 | Yes |
password | string | 密码 | Yes |
database | string | 数据库 | Yes |
table | string | 表名 | Yes |
host | string | 转发主机地址, IP或者域名 | Yes |
port | int | 端口, 1~65535 | Yes |
type=6(ONENET)时特有参数
此类型目的地端点跟KAFKA目的地端点类似,区别在于数据转发的数据结构不同,与ONENET公有云兼容。
Name | Type | Description | Required |
---|---|---|---|
topic | string | 指定推送topic | Yes |
addr | string | KAFKA集群地址(用英文逗号隔开) | Yes |
Name | Type | Description | Required |
---|---|---|---|
topic | string | KAFKA指定推送topic | Yes |
addr | string | KAFKA地址,支持集群(用英文逗号隔开) | Yes |
keytab | string | keytab文件信息 | Yes |
username | string | 用户名称 | Yes |
Body example:
type=1(REST):
{
"type": 1,
"env": 1,
"host": "36.155.104.166",
"port": 9005,
"path": "/path"
}
type=2(MQTT):
{
"type": 2,
"env": 1,
"host": "36.155.104.166",
"port": 18830,
"clientId": "tester",
"username": "cmiot",
"password": "Iot@10086",
"topic": "/test/forward"
}
type=3(KAFKA):
{
"type": 3,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}
type=4(MYSQL)/7(SQL Server):
{
"type": 4,
"env": 1,
"host": "36.155.104.166",
"port": 3306,
"username": "root",
"password": "iot@10086",
"database": "edgetester",
"table": "test"
}
type=6(ONENET):
{
"type": 6,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}
type=10(数据湖KAFKA):
{
"type": 10,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest",
"keytab": "keytabtest",
"username": "test"
}
cURL example:
type=1(REST):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/connection/testing?accessKeyId={accessKeyId}&signatureNonce=153&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 1,
"env": 1,
"host": "36.155.104.166",
"port": 9005,
"path": "/path"
}'
type=2(MQTT):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/connection/testing?accessKeyId={accessKeyId}&signatureNonce=724&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 2,
"env": 1,
"host": "36.155.104.166",
"port": 18830,
"clientId": "tester",
"username": "cmiot",
"password": "Iot@10086",
"topic": "/test/forward"
}'
type=3(KAFKA):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/connection/testing?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 3,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}'
type=4(MYSQL)/7(SQL Server):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/connection/testing?accessKeyId={accessKeyId}&signatureNonce=40&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 4,
"env": 1,
"host": "36.155.104.166",
"port": 3306,
"username": "root",
"password": "iot@10086",
"database": "edgetester",
"table": "test"
}'
type=6(ONENET):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/connection/testing?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 6,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}'
type=10(数据湖KAFKA):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/connection/testing?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 2' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 3,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest",
"keytab": "keytabtest",
"username": "test"
}'
Response example:
{
"data": null,
"success": true,
"code": 0,
"msg": null
}
功能描述:在物联网平台上新建路由目的地端点,返回该配置的ID。
POST /api/v1/address-configs
Body公共参数:
Name | Type | Description | Required |
---|---|---|---|
name | string | 目的地端点名称 | Yes |
type | int | 转发方式(1:REST / 2:MQTT / 3:KAFKA / 4:MYSQL / 5:保留值 / 6:ONENET / 7:SQL Server) | Yes |
env | int | 1:云端 | Yes |
Body可选参数:
Name | Type | Description | Required |
---|---|---|---|
path | string | 访问路径,REST仅有属性 | Yes |
host | string | 转发主机地址, IP或者域名 | Yes |
port | int | 端口, 1~65535 | Yes |
Name | Type | Description | Required |
---|---|---|---|
clientId | string | 客户端ID | Yes |
username | string | 用户名 | Yes |
password | string | 密码 | Yes |
topic | string | MQTT指定推送topic | Yes |
host | string | 转发主机地址, IP或者域名 | Yes |
port | int | 端口, 1~65535 | Yes |
Name | Type | Description | Required |
---|---|---|---|
topic | string | KAFKA指定推送topic | Yes |
addr | string | KAFKA地址,支持集群(用英文逗号隔开) | Yes |
Name | Type | Description | Required |
---|---|---|---|
username | string | 用户名 | Yes |
password | string | 密码 | Yes |
database | string | 数据库 | Yes |
table | string | 表名 | Yes |
host | string | 转发主机地址, IP或者域名 | Yes |
port | int | 端口, 1~65535 | Yes |
type=6(ONENET)时特有参数
此类型目的地端点跟KAFKA目的地端点类似,区别在于数据转发的数据结构不同,与ONENET公有云兼容。
Name | Type | Description | Required |
---|---|---|---|
topic | string | 指定推送topic | Yes |
addr | string | KAFKA集群地址(用英文逗号隔开) | Yes |
Name | Type | Description | Required |
---|---|---|---|
topic | string | KAFKA指定推送topic | Yes |
addr | string | KAFKA地址,支持集群(用英文逗号隔开) | Yes |
keytab | string | keytab文件信息 | Yes |
username | string | 用户名称 | Yes |
Body example:
type=1(REST):
{
"name":"rest",
"type": 1,
"env": 1,
"host": "36.155.104.166",
"port": 9005,
"path": "/path"
}
type=2(MQTT):
{
"name":"mqtt",
"type": 2,
"env": 1,
"host": "36.155.104.166",
"port": 18830,
"clientId": "tester",
"username": "cmiot",
"password": "Iot@10086",
"topic": "/test/forward"
}
type=3(KAFKA):
{
"name":"kafka",
"type": 3,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}
type=4(MYSQL)/7(SQL Server):
{
"name":"mysql",
"type": 4,
"env": 1,
"host": "36.155.104.166",
"port": 3306,
"username": "root",
"password": "iot@10086",
"database": "edgetester",
"table": "test"
}
type=6(ONENET):
{
"name":"onenet",
"type": 6,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}
type=10(数据湖KAFKA):
{
"name":"kafka",
"type": 3,
"env": 2,
"addr": "36.155.104.166:9092",
"topic": "edgetest",
"keytab": "keytabtest",
"username": "test"
}
cURL example:
type=1(REST):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=153&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"rest",
"type": 1,
"env": 1,
"host": "36.155.104.166",
"port": 9005,
"path": "/path"
}'
type=2(MQTT):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=724&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"mqtt",
"type": 2,
"env": 1,
"host": "36.155.104.166",
"port": 18830,
"clientId": "tester",
"username": "cmiot",
"password": "Iot@10086",
"topic": "/test/forward"
}'
type=3(KAFKA):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"kafka",
"type": 3,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}'
type=4(MYSQL)/7(SQL Server):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=40&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"mysql",
"type": 4,
"env": 1,
"host": "36.155.104.166",
"port": 3306,
"username": "root",
"password": "iot@10086",
"database": "edgetester",
"table": "test"
}'
type=6(ONENET):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"onenet",
"type": 6,
"env": 1,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}'
type=10(数据湖KAFKA):
curl --location --request POST '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 2' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"kafka",
"type": 3,
"env": 2,
"addr": "36.155.104.166:9092",
"topic": "edgetest",
"keytab": "keytabtest",
"username": "test"
}'
Response:
Name | Type | Description |
---|---|---|
data | int | 新建目的地端点的ID |
Response example:
{
"data": 13593,
"success": true,
"code": 0,
"msg": null
}
功能描述:获取一个路由目的地端点信息。
GET /api/v1/address-configs/{id}
Path:
Name | Type | Description | Required |
---|---|---|---|
id | int | 目的地端点信息ID | Yes |
cURL example:
curl --location --request GET '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/13393?accessKeyId={accessKeyId}&signatureNonce=529&signature={signature}' \
--header 'platform: 1'
Response data:
不同类型的目的地端点仅返回相关字段,其余字段为空,可以参考新增目的地端点时的参数说明。
Name | Type | Description |
---|---|---|
id | string | 目的地端点ID |
type | int | 转发方式(1:REST / 2:MQTT / 3:KAFKA / 4:MYSQL / 5:保留值 / 6:ONENET / 7:SQL Server / 10:数据湖KAFKA) |
env | int | 1:云端 |
password | string | 密码 |
database | string | 数据库 |
table | string | 表名 |
host | string | 转发主机地址, IP或者域名 |
topic | string | 指定推送topic |
addr | string | 集群地址 |
clientId | string | 客户端ID |
username | string | 用户名 |
port | int | 端口, 1~65535 |
path | string | 访问路径,REST仅有属性 |
created | long | 创建时间,单位毫秒 |
modified | long | 修改时间,单位毫秒 |
userId | string | 所属用户的ID |
name | string | 目的地端点名称 |
Response example:
{
"data": {
"env": 1,
"addr": "36.155.104.166:9092",
"clientId": "",
"database": "",
"host": "",
"password": "",
"path": "",
"port": 0,
"topic": "edgetest",
"type": 3,
"username": "",
"table": "",
"id": "13395",
"created": 1588838290399,
"modified": 1588838290399,
"userId": "bb5f2d0f4fad4d2ab1897d3fdca7c5c3",
"name": "kafka1",
"platform": 1,
"ownerName": null
},
"success": true,
"code": 0,
"msg": null
}
功能描述:在物联网平台上修改指定的路由目的地端点。
PATCH /api/v1/address-configs/{id}
Path:
Name | Type | Description | Required |
---|---|---|---|
id | int | 目的地端点ID | Yes |
Body公共参数:
Name | Type | Description | Required |
---|---|---|---|
name | string | 目的地端点名称 | No |
type | int | 转发方式(1:REST / 2:MQTT / 3:KAFKA / 4:MYSQL / 5:保留值 / 6:ONENET / 7:SQL Server / 10:数据湖KAFKA) | No |
Body可选参数:
Name | Type | Description | Required |
---|---|---|---|
path | string | 访问路径,REST仅有属性 | No |
host | string | 转发主机地址, IP或者域名 | No |
port | int | 端口, 1~65535 | No |
Name | Type | Description | Required |
---|---|---|---|
clientId | string | 客户端ID | No |
username | string | 用户名 | No |
password | string | 密码 | No |
topic | string | MQTT指定推送topic | No |
host | string | 转发主机地址, IP或者域名 | No |
port | int | 端口, 1~65535 | No |
Name | Type | Description | Required |
---|---|---|---|
topic | string | KAFKA指定推送topic | No |
addr | string | KAFKA地址,支持集群(用英文逗号隔开) | No |
Name | Type | Description | Required |
---|---|---|---|
username | string | 用户名 | No |
password | string | 密码 | No |
database | string | 数据库 | No |
table | string | 表名 | No |
host | string | 转发主机地址, IP或者域名 | No |
port | int | 端口, 1~65535 | No |
type=6(ONENET)时特有参数
此类型目的地端点跟KAFKA目的地端点类似,区别在于数据转发的数据结构不同,与ONENET公有云兼容。
Name | Type | Description | Required |
---|---|---|---|
topic | string | 指定推送topic | No |
addr | string | KAFKA集群地址(用英文逗号隔开) | No |
Name | Type | Description | Required |
---|---|---|---|
topic | string | KAFKA指定推送topic | No |
addr | string | KAFKA地址,支持集群(用英文逗号隔开) | No |
keytab | string | keytab文件信息 | No |
username | string | 用户名称 | No |
Body example:
type=1(REST):
{
"name":"rest1",
"type": 1,
"host": "36.155.104.166",
"port": 9005,
"path": "/path"
}
type=2(MQTT):
{
"name":"mqtt1",
"type": 2,
"host": "36.155.104.166",
"port": 18830,
"clientId": "tester",
"username": "cmiot",
"password": "Iot@10086",
"topic": "/test/forward"
}
type=3(KAFKA):
{
"name":"kafka1",
"type": 3,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}
type=4(MYSQL)/7(SQL Server):
{
"name":"mysql1",
"type": 4,
"host": "36.155.104.166",
"port": 3306,
"username": "root",
"password": "iot@10086",
"database": "edgetester",
"table": "test"
}
type=6(ONENET):
{
"name":"onenet1",
"type": 6,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}
type=10(数据湖KAFKA):
{
"name":"kafka1",
"type": 3,
"addr": "36.155.104.166:9092",
"topic": "edgetest",
"keytab": "keytabtest",
"username": "test"
}
cURL example:
type=1(REST):
curl --location --request PATCH '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/13393?accessKeyId={accessKeyId}&signatureNonce=153&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"rest1",
"type": 1,
"host": "36.155.104.166",
"port": 9005,
"path": "/path"
}'
type=2(MQTT):
curl --location --request PATCH '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=724&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"mqtt1",
"type": 2,
"host": "36.155.104.166",
"port": 18830,
"clientId": "tester",
"username": "cmiot",
"password": "Iot@10086",
"topic": "/test/forward"
}'
type=3(KAFKA):
curl --location --request PATCH '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"kafka1",
"type": 3,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}'
type=4(MYSQL)/7(SQL Server):
curl --location --request PATCH '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=40&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"mysql1",
"type": 4,
"host": "36.155.104.166",
"port": 3306,
"username": "root",
"password": "iot@10086",
"database": "edgetester",
"table": "test"
}'
type=6(ONENET):
curl --location --request PATCH '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"onenet1",
"type": 6,
"addr": "36.155.104.166:9092",
"topic": "edgetest"
}'
type=10(数据湖KAFKA):
curl --location --request PATCH '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=167&signature={signature}' \
--header 'platform: 2' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"kafka1",
"type": 3,
"addr": "36.155.104.166:9092",
"topic": "edgetest",
"keytab": "keytabtest",
"username": "test"
}'
Response:
Name | Type | Description |
---|---|---|
data | int | 被修改的目的地端点的ID |
Response example:
{
"data": 13393,
"success": true,
"code": 0,
"msg": null
}
功能描述:在物联网平台上删除一个指定的路由目的地端点。
DELETE /api/v1/address-configs/{id}
Path:
Name | Type | Description | Required |
---|---|---|---|
id | int | 目的地址配置ID | Yes |
cURL example:
curl --location --request DELETE '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs/13393?accessKeyId={accessKeyId}&signatureNonce=529&signature={signature}' \
--header 'platform: 1'
Response example:
{
"data": "true",
"success": true,
"code": 0,
"msg": null
}
功能描述:在物联网平台分页查询路由目的地端点信息,返回结果包括目的地址配置列表和总数量。
GET /api/v1/address-configs
Query:
Name | Type | Description | Required |
---|---|---|---|
type | int | 转发方式,值参考新增目的地址配置(0:所有) | Yes |
pageSize | int | 分页大小 | Yes |
currentPage | int | 页码 | Yes |
name | string | 名称模糊查询字段 | No |
env | int | 目的地类型:1-云端,0-全部;默认全部 | No |
cURL example:
curl --location --request GET '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=166&signature={signature}¤tPage=1&pageSize=5&name=my&type=0' \
--header 'platform: 1'
Response data:
Name | Type | Description |
---|---|---|
currentPage | int | 当前页数 |
pageSize | int | 每页数量 |
totalCount | int | 符合条件的总数量 |
totalPage | int | 符合条件的总页数 |
content | struct[] | 本页数据列表 |
不同类型的目的地址配置仅返回相关字段,其余字段为空,可以参考新增目的地址配置时的参数说明。
Response data content:
Name | Type | Description |
---|---|---|
id | string | 目的地址配置ID |
type | int | 转发方式(1:REST / 2:MQTT / 3:KAFKA / 4:MYSQL / 5:保留值 / 6:ONENET / 7:SQL Server / 10:数据湖KAFKA) |
env | int | 1:云端 |
password | string | 密码 |
database | string | 数据库 |
table | string | 表名 |
host | string | 转发主机地址, IP或者域名 |
topic | string | 指定推送topic |
addr | string | 集群地址 |
clientId | string | 客户端ID |
username | string | 用户名 |
port | int | 端口, 1~65535 |
path | string | 访问路径,REST仅有属性 |
created | long | 创建时间,单位毫秒 |
modified | long | 修改时间,单位毫秒 |
userId | string | 所属用户的ID |
name | string | 目的地址配置名称 |
Response example:
{
"data": {
"currentPage": 1,
"pageSize": 5,
"totalCount": 2,
"totalPage": 1,
"content": [
{
"env": 1,
"addr": "36.155.104.166:9092",
"clientId": null,
"database": "edgetester",
"host": "36.155.104.166",
"password": "iot@10086",
"path": null,
"port": 3306,
"topic": "edgetest",
"type": 4,
"username": "root",
"table": "test",
"id": "13395",
"created": 1588838290399,
"modified": 1588844441917,
"userId": "bb5f2d0f4fad4d2ab1897d3fdca7c5c3",
"name": "mysql2",
"platform": 1,
"ownerName": null
},
{
"env": 1,
"addr": null,
"clientId": null,
"database": "edgetester",
"host": "36.155.104.166",
"password": "iot@10086",
"path": null,
"port": 3306,
"topic": null,
"type": 4,
"username": "root",
"table": "test",
"id": "13394",
"created": 1588838193750,
"modified": 1588838193750,
"userId": "bb5f2d0f4fad4d2ab1897d3fdca7c5c3",
"name": "mysql",
"platform": 1,
"ownerName": null
}
]
},
"success": true,
"code": 0,
"msg": null
}
功能描述:在物联网平台上删除一个或多个指定的路由目的地端点。
DELETE /api/v1/address-configs
Body:
Name | Type | Description | Required |
---|---|---|---|
ids | int[] | 目的地址配置ID数组 | Yes |
Body example:
[13393,13394]
cURL example:
curl --location --request DELETE '{URI-scheme}://{Endpoint}{path-prefix}/api/v1/address-configs?accessKeyId={accessKeyId}&signatureNonce=495&signature={signature}' \
--header 'platform: 1' \
--header 'projectId: {projectId}' \
--header 'Content-Type: application/json' \
--data-raw '[13393,13394]'
Response example:
{
"data": "true",
"success": true,
"code": 0,
"msg": null
}